* {
    box-sizing: border-box;
}

body {
    background-color: #0E7B77;
    margin-top: 25px;
    background-image: url(../images/merTurquoise.jpg);
    font-family: Calibri;
}

.footer, .header, .gangnamstyle, .membershippages, .accountpage {
    margin: auto;
    clear: both;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    height: auto;
}

.tariffbox {
    /* FIX: margin-bottom was overridden by margin:auto — reordered so both apply */
    margin: auto;
    margin-bottom: 2%;
    clear: both;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    height: auto;
}

.gangnamstyle, .membershippages, .accountpage, .tariffbox {
    padding: 20px;
    background-color: #FFFFFF;
    border: 7px solid #7ABDFF;
    box-shadow: #B3B3B3 5px 5px 5px;
    -webkit-box-shadow: #B3B3B3 5px 5px 5px;
    -moz-box-shadow: #B3B3B3 5px 5px 5px;
    vertical-align: middle;
}

.gangnamstyle {
    width: 85%;
}

.tariffbox {
    width: 95%;
}

.membershippages {
    width: 50%;
}

.accountpage {
    width: 65%;
}

.header, .footer {
    padding: 15px;
    border: 7px solid #3393AB;
    background-color: #0A4F52;
    color: #FFF;
    text-align: center;
    width: 40%;
}

.remarkport {
    float: none;
    margin-top: 10px;
    padding: 5px;
    text-align: left;
    background-color: #CCC;
}

.bar {
    clear: both;
    font-size: 20px;
    text-align: center;
    border: solid 1px #c3c3c3;
    padding: 10px;
    background-color: #B7D5D4;
}

.kapi {
    border: none;
    background: #1d5462;
    color: #ffffff;
    font-size: 22px;
    font-weight: bold;
    padding: 20px;
    text-transform: uppercase;
    border-radius: 6px;
    display: inline-block;
    transition: all 0.3s ease 0s;
    white-space: normal;
    height: 140px;
    width: 45%;
    margin: 10px;
    text-align: center;
    vertical-align: middle;
}

    .kapi:hover {
        color: #404040;
        font-weight: bold;
        letter-spacing: 3px;
        background: none;
        -webkit-box-shadow: 0px 5px 40px -10px rgba(0, 0, 0, 0.57);
        -moz-box-shadow: 0px 5px 40px -10px rgba(0, 0, 0, 0.57);
        box-shadow: 0px 5px 40px -10px rgba(0, 0, 0, 0.57);
        transition: all 0.3s ease 0s;
    }

.container {
    display: table;
    height: 100%;
}

.element {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}

.accountButtonDiv {
    float: right;
    margin-right: 2%;
    min-width: 200px;
    margin-bottom: 2%;
}

@media only screen and (min-width: 320px) and (max-width: 767px) {

    /* html: no position:absolute, no rotation — plain normal flow */
    html {
        width: 100%;
        position: static;
    }

    .kapi {
        width: 90%;
    }

    /* .gangnamstyle width is overridden per-orientation in costs_ports_classed.css */
    .membershippages, .accountpage, .tariffbox {
        width: 100%;
    }

    .header, .footer {
        width: 80%;
    }

    .accountButtonDiv {
        float: none;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 5%;
        min-width: 100px;
        max-width: 150px;
        width: 70%;
    }

    table.finalExpenses {
        width: 98%;
        min-width: 98%;
    }
}

@media print {
    #printPageButton, #transitdisclaimer {
        display: none;
    }

    @page {
        size: A4 landscape;
    }

    /* FIX: force zebra stripes to appear when printing */
    table.finalExpenses tr:nth-child(2n+5) {
        background-color: #f2f2f2 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        color-adjust: exact;
    }

    /* ── TOTAL ROW ── */
    td[class^="call-total-"],
    tr:has(td[class^="call-total-"]) td:first-child {
        background-color: #d0e9e9 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        color-adjust: exact;
    }

    /* ── SUM HIGHLIGHT ── */
    .cost-highlight {
        background-color: #D4700A !important;
        color: #ffffff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        color-adjust: exact;
    }

    /* ── VESSEL INFO BOX ── */
    #rcorners {
        background-color: lightblue !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        color-adjust: exact;
    }
}

table.finalExpenses {
    /*border: 1px solid turquoise;
    border-radius: 13px;*/
    padding: 10px;
    width: 90%; /* fills 90% of the screen */
    min-width: 90%; /* never shrinks below 90% */
    table-layout: fixed; /* prevents content from pushing columns wider */
}

    table.finalExpenses tr:nth-child(2n+5) {
        background-color: #f2f2f2;
        -webkit-print-color-adjust: exact; /* Chrome, Safari, Edge */
        print-color-adjust: exact; /* Firefox, standard */
        color-adjust: exact; /* older Firefox */
    }

.holder {
    flex-shrink: 0;
}

#rcorners {
    border-radius: 10px;
    background: #B7D5D4;
    padding: 2%;
    margin: 2%;
    font-size: 16px;
    vertical-align: middle;
    /* width is now controlled by flex:1 set inline */
}
/*
.printBtn {
    background-color: gray;
    border: none;
    color: white;
    padding: 12px 16px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 12px;
}
*/
.printBtn {
    background-color: gray;
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 15px;
    cursor: pointer;
    border-radius: 10px;
    letter-spacing: 0.5px;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    width: 120px;
}

    .printBtn:hover {
        background-color: #0d6b6f;
    }


button {
    background-color: lightgray;
    color: black;
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    border: none;
    cursor: pointer;
}

    button:hover {
        opacity: 0.8;
    }